class CreateBlockStocks < ActiveRecord::Migration[7.2]
  def change
    create_table :block_stocks do |t|
      t.references :stock, null: false, foreign_key: true
      t.references :block, null: false, foreign_key: true
      t.integer :position

      t.timestamps
    end
  end
end
